package com.pretty.test.controller.pets.baikeanimaltype.wrapper;

import com.pretty.test.controller.pets.baikeanimaltype.vo.BaikeAnimalTypeListVO;
import com.pretty.test.controller.pets.blog.vo.BlogPageVO;
import com.pretty.test.controller.pets.blog.wrapper.BlogPageWrapper;
import com.pretty.test.entity.PetsBaikeAnimalType;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

public class BaikeAnimalTypeListWrapper extends BaseEntityWrapper<PetsBaikeAnimalType, BaikeAnimalTypeListVO> {
    public static BaikeAnimalTypeListWrapper build(){
        return new BaikeAnimalTypeListWrapper();
    }

    @Override
    public BaikeAnimalTypeListVO entityVO(PetsBaikeAnimalType entity) {
        BaikeAnimalTypeListVO vo = Objects.requireNonNull(BeanUtil.copy(entity, BaikeAnimalTypeListVO.class));
        return vo;
    }
}
